package com.zqxq.common.enums;

public enum SysCouponEnums {

    VIP_COUPON("223473098123500000","限购买会员"),
    MAIN_LINE_COURSE_COUPON("223473098123500001","限购买主线课程"),
    BIG_GIFT_COUPON("223473098123500002","限购买学习大礼包"),
    CURRENCY_COUPON_20("223473098123500003","通用红包20元"),
    CURRENCY_COUPON_10("223473098123500004","通用红包10元");
    private String code;
    private String message;

    SysCouponEnums(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public static SysCouponEnums getAutoMarketsByCode(int code){
        for (SysCouponEnums enums: SysCouponEnums.values()){
            if (enums.getCode().equals(code)){
                return enums;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
